Release 10.1A: OpenEdge Development:
Progress 4GL Reference
DATETIME function
Converts date and time values, or a character string, into a DATETIME.
Note: If any argument is the Unknown value (?), the result is the Unknown value (?).Syntax
date-expAn expression whose value is a DATE.
mtime-expAn expression whose value is an integer representing the number of milliseconds since midnight.
stringA character expression whose value is a string containing a DATETIME. The date portion of the string must have the format specified by the DATE-FORMAT attribute. The time portion must be in a valid time format (HH:MM:SS, and so on).
monthAn expression whose value is an integer from 1 to 12, inclusive.
dayAn expression whose value is an integer from 1 to the highest valid day of the month.
yearAn expression that evaluates to a year.
hoursAn expression whose value is an integer from 0 to 23, inclusive.
minutesAn expression whose value is an integer from 0 to 59, inclusive.
secondsAn expression whose value is an integer from 0 to 61, inclusive. The upper limit is 61 for leap seconds.
millisecondsAn expression whose value is an integer from 0 to 999, inclusive.
ExampleFollowing is an example of using the DATETIME function:
The following statements result in the same DATETIME value:
See also
DATE function, DATE-FORMAT attribute, DATETIME-TZ function, DAY function, ETIME function, ISO-DATE function, MONTH function, MTIME function, NOW function, TIME function, TIMEZONE function, TODAY function, WEEKDAY function, YEAR function, YEAR-OFFSET attribute
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |